
/**
 * 事件
 */

import { DateTime, Jsonb } from "@sker/core";
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
@Entity({
    name: 'wb_event'
})
export class WbEvent {

    @PrimaryGeneratedColumn()
    id!: number;

    @Column()
    title!: string;

    @Column()
    address!: string;

    @Column({ nullable: true })
    latlng!: string;

    @Column({
        nullable: true
    })
    type!: string;

    @Column({
        nullable: true
    })
    category!: string;

    @Column({
        default: '',
    })
    desc!: string;

    @DateTime()
    start_date: Date;

    @DateTime()
    spider_date: Date;

    @Column('simple-array', {
        nullable: true
    })
    keywords!: string[];

    @Jsonb({ nullable: true })
    setting: any;
}
